// ex6_3.cpp
#include <iostream>

int main(void)
{
    using std::cout;
    using std::cin;
    using std::endl;
    
    char ch;

    cout << "Please enter one of the following choices:\n";
    cout << "c) carnivore        p) pianist\n";
    cout << "t) tree             g) game\n";
    
    cin.get(ch).get();
    while (ch != 'c' || ch != 'p' || ch != 't'|| ch != 'g')
    {
        cout << "Please enter a c, p, t, or g: ";
        cin.get(ch).get();     
        
        if (ch == 'c' || ch == 'p' || ch == 't'|| ch == 'g')
            break;
    }
    cout << "A maple is a tree." << endl;
}
